package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ProjectSchedule;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ProjectScheduleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;
import java.util.Map;

/**
 * 项目进度计划表 Mapper接口
 *
 * @author admin
 * @since 2025-08-08
 */
@Mapper
public interface ProjectScheduleMapper extends BaseMapper<ProjectSchedule> {
    /**
     * 查询项目进度计划表
     *
     * @return
     */
    List<ProjectScheduleVO> selectProjectScheduleList(@Param("query") ProjectScheduleVO vo);

    IPage<ProjectScheduleVO> pageList(@Param("page") Page<ProjectScheduleVO> page, @Param("query") ProjectScheduleVO vo);

    List<ProjectScheduleVO> getDataForExport(@Param("query") ProjectScheduleVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ProjectScheduleVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);


    List<Map<String, Object>> getOverallProgress();
}
